import type { ClassInfo } from './class'
import type { Lesson } from './lesson'
import http from '@/utils/http'

export interface ScheduleLesson extends Lesson {
  classInfo: ClassInfo
  campusName: string
  classroomName: string

  totalCount: number
  signInCount: number
}

export interface ScheduleLessonQuery {
  lessonDateFrom: string
  lessonDateTo: string
}

// 查询排课课次列表
export function getScheduleLessonList(query: ScheduleLessonQuery) {
  return http.get<ScheduleLesson[]>(`/t/schedule/lesson/list`, query)
}
